﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.css {

    public class CSSPropertyCache {

        protected static var g_propertyCache:Object = {};

        public static function propertyForKeyValue(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=false):Object{
            var _local6:Function;
            var _local7:Object;
            var _local5:Object = g_propertyCache[((((_arg1 + "=") + _arg2) + _arg3) + _arg4)];
            if (!_local5){
                _local6 = CSSDeclaration.parserForProperty(_arg1);
                _local5 = _local6(_arg2, _arg3);
                if (_arg4){
                    if ((_local5 is CSSProperty)){
                        CSSProperty(_local5).setIsWeak(true);
                    } else {
                        if ((_local5 is CSSParsingResult)){
                            _local7 = _local5.properties();
                            for (_arg1 in _local7) {
                                CSSProperty(_local7[_arg1]).setIsWeak(true);
                            };
                        };
                    };
                };
                g_propertyCache[((((_arg1 + "=") + _arg2) + _arg3) + _arg4)] = _local5;
            };
            return (_local5);
        }

    }
}//package reprise.css 
